Skip to content

Comments

Fix the server startup issue and fix the build not failing issue#1735

Merged
daneshk merged 5 commits intoballerina-platform:masterfrom
daneshk:master
Jan 23, 2026
Merged

Fix the server startup issue and fix the build not failing issue#1735
daneshk merged 5 commits intoballerina-platform:masterfrom
daneshk:master

Conversation

@daneshk
Copy link
Member

@daneshk daneshk commented Jan 22, 2026

Purpose

Fixes: ballerina-platform/ballerina-library#8568

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 55.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.20%. Comparing base (d11e84d) to head (17a94ca).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...grpc/nativeimpl/serviceendpoint/FunctionUtils.java 40.00% 9 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master    #1735       +/-   ##
=============================================
+ Coverage     30.74%   80.20%   +49.45%     
- Complexity        0       56       +56     
=============================================
  Files            72       77        +5     
  Lines          5428     5628      +200     
  Branches       1100     1148       +48     
=============================================
+ Hits           1669     4514     +2845     
+ Misses         3599      696     -2903     
- Partials        160      418      +258     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

serverConnectorFuture.sync();
} catch (Exception ex) {
return MessageUtils.getConnectorError(new StatusRuntimeException(Status
throw MessageUtils.getConnectorError(new StatusRuntimeException(Status
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason to throw here instead of return similar to other places?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the backend server had an error at startup, return was treated as a normal exit rather than an error exit. The grpc build was passing, though tests were not run properly.

@daneshk daneshk merged commit 6e51966 into ballerina-platform:master Jan 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot start a gRPC service

3 participants